home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20020314-20021006
/
000237_fdc@columbia.edu_Thu Jul 25 14:11:44 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2002-10-06
|
3KB
|
62 lines
Article: 13550 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.os.vms,comp.protocols.kermit.misc
Subject: Re: HowTo delete a remote file via FTP without user interaction?
Date: 25 Jul 2002 14:03:44 -0400
Organization: Columbia University
Lines: 45
Message-ID: <ahpei0$b38$1@watsol.cc.columbia.edu>
References: <75be4573.0207240007.6257f41f@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1027620226 12820 128.59.39.139 (25 Jul 2002 18:03:46 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 25 Jul 2002 18:03:46 GMT
Xref: newsmaster.cc.columbia.edu comp.os.vms:343938 comp.protocols.kermit.misc:13550
In article <75be4573.0207240007.6257f41f@posting.google.com>,
Geert Marttin <GMarttin@Hotmail.com> wrote:
: I'm maintaining a (DEC Pascal) program that will download updates on a
: regular basis. The program consists of a loop within which it will:
: - check if new files have been created on a remote directory
: - copy these files to a local directory
: - delete the files on the remote directory
: This worked fine with DecNet but in the future we'll be using FTP for
: this.
:
: The first two were easy to modify utilizing DIR/FTP and COPY/FTP in
: command files which are 'called' from the program (using $CREPRC). But
: I seem unable to find a (DCL) command that will delete files via FTP?!
: I am able to set up a FTP connection manually and delete the files
: (with the FTP utility) but, well, that's not something my users want
: to be bothered with/I want to bother my users with.
:
: Anybody have any idea how to automate this task?
:
Gee, too bad C-Kermit's FTP module has not been ported to VMS, because
it's perfect for this:
http://www.columbia.edu/kermit/ftpscripts.html
With Kermit, it's done with a single command:
mget /delete <filespec>
This means: get all the files whose names match the given filespec
pattern, and each time a file arrives successfully, tell the server
to delete the source file. You can think of this as *moving* the files
>from the server to the client. If a file can't be downloaded completely
for any reason, it is not deleted from the server.
By the way, you can do exactly the same if you use Kermit protocol,
so if the FTP host can run C-Kermit, you could use Kermit instead of
FTP and get the same effect:
http://www.columbia.edu/kermit/ckermit.html
This topic is also covered in some depth here:
http://www.columbia.edu/kermit/case10.html
- Frank